package com.guess.study.designpattern.factory.simplefactory.client;

import com.guess.study.designpattern.factory.simplefactory.factory.Creator;
import com.guess.study.designpattern.factory.simplefactory.product.Product;

/**
 * Created by tianran on 2019-06-06.
 */
public class Client {

    public static void main(String[] args) {
        Product productA = Creator.createProduct("A");
        productA.doSomething();
        productA.doAnything();

        Product productB = Creator.createProduct("B");
        productB.doSomething();
        productB.doAnything();
    }

}
